package SingleService;

/**
 * <p> TODU </P>
 *
 * @author yeager
 * @Version V1.1.1.0
 * @date 2023/11/24 9:33
 */
public class SingleInstance {

    private static Object[] instanceList=new Object[100];

    public static void registerInstance(int key,Object o)
    {
        instanceList[key]=o;
    }

    public static Object getInstance(int key)
    {
        return instanceList[key];
    }
}
